﻿using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content.Pipeline.Serialization.Compiler;
using Microsoft.Xna.Framework.Content.Pipeline;
using System;
using System.Diagnostics;
using Brain;

namespace Brain.ContentPipeline
{
    [ContentTypeWriter]
    internal class AvatarAnimationWriter : ContentTypeWriter<AvatarAnimationData>
    {
        protected override void Write(ContentWriter output, AvatarAnimationData value)
        {
            value.Write(output);
        }

        public override string GetRuntimeReader(TargetPlatform targetPlatform)
        {
            Type type = typeof(CustomAvatarAnimationReader);
            string ass = AssemblyUtil.GetCorrectType(type, (Platform)targetPlatform);
            Console.WriteLine(ass);
            return ass;
        }
    }
}